//
//  DYGroupSettingsTextCell.h
//  DaYing
//
//  Created by DaYing Team on 2023.
//  Copyright © 2023 DaYing Team. All rights reserved.
//

#import "BaseTableViewCell.h"

@class DYGroupSettingsTextCell;
@class DYGroupSettingsTextCellModel;

@protocol DYGroupSettingsTextCellDelegate <NSObject>

- (void)groupSettingsTextCell:(DYGroupSettingsTextCell *)cell textField:(UITextField *)textField;

@end

@interface DYGroupSettingsTextCell : BaseTableViewCell <UITextFieldDelegate>

@property (nonatomic,weak) id<DYGroupSettingsTextCellDelegate> delegate;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *viewBottom;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UITextField *textField;//输入框
@property (weak, nonatomic) IBOutlet UILabel *lineLabel;
@property (strong, nonatomic) DYGroupSettingsTextCellModel *model;

@end


#pragma mark - Model

@interface DYGroupSettingsTextCellModel : NSObject

@property (nonatomic,copy) NSString *title;
@property (nonatomic,copy) NSString *content;
@property (nonatomic,copy) NSString *tip;

+ (DYGroupSettingsTextCellModel *)ittemModelWithTitle:(NSString *)title content:(NSString *)content tip:(NSString *)tip;

@end
